package com.yh.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author yh
 */
@Controller
public class Login {
 
  @RequestMapping(value = "/login",method = RequestMethod.GET)
  public String hello(Model model) {
    model.addAttribute("name", "Cuiyw");
    return "index";
  }
}